class TujianBigItem extends eui.ItemRenderer{
	private itemlist:eui.List;
	private _listDataArr:eui.ArrayCollection;
	private oldData:any;
	
	public constructor() {
		super();
		this.init();
	}

	protected init()
	{
		this.cacheAsBitmap = true;
		this.skinName = "TujianBigItemView";
		this.addEventListener(egret.Event.REMOVED_FROM_STAGE, this.destory, this);
	}

	protected childrenCreated():void{
		super.childrenCreated();
	}

	protected dataChanged(){
		if(this.oldData == this.data)
			return;
		this.oldData = this.data;
		this._listDataArr = new eui.ArrayCollection(this.data);
		this.itemlist.dataProvider = this._listDataArr;
		this.itemlist.itemRenderer = TujianItem;
	}

	public destory()
	{
		this.removeEventListener(egret.Event.REMOVED_FROM_STAGE, this.destory, this);
		this.itemlist.dataProvider = null;
		this.itemlist.itemRenderer = null;
		this.oldData = null;
	}
}

window['TujianBigItem'] = TujianBigItem;